<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<HTML>
<HEAD>
<TITLE>Locator selector</TITLE>
<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
<script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript">
arrTeclas = new Array(
new Teclas("M", "mostrarMenu();", null, "ctrlKey"),
new Teclas("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', 'MatchingPO');", "inpmProductId_DES", "null"),
new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null")
);
activarControlTeclas();

var arrFinalDocs = new Array(
new Array("1", "2", "Albaran"),
new Array("2", "1", "Factura"),
new Array("2", "3", "Pedido de compra"),
new Array("3", "2", "Albaran")
);

function onloadFunctions() {
	new TypeAheadCombo("reportDocument_M");
  new TypeAheadCombo("reportFinalDoc_M");
  new TypeAheadCombo("reportState_M");
}
</SCRIPT>
</HEAD>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();selectCombo(document.frmMain.inpsourcedoc, 'yy');rellenarComboHijo(document.frmMain.inpfinaldoc, arrFinalDocs, document.frmMain.inpsourcedoc.options[document.frmMain.inpsourcedoc.selectedIndex].value, false, true);selectCombo(document.frmMain.inpfinaldoc, 'xx');selectCombo(document.frmMain.inpsearchmode, 'zz');focoPrimerControl();" id="paramBody">
<TABLE width="100%" border="0" cellspacing="1" cellpadding="0" >
<TR>
          <TD  width="2%"> <A href="#" onclick="mostrarMenu();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
            <img src="../../../../../web/images/Menu.jpg"  alt="Menu" title="Menu" border="0" id="buttonMenu"></IMG></A></TD>
          <TD > <HR></HR>
          </TD>
          <TD  width="100"> <A HREF="#" onClick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/TB_Openbravo.gif"  alt="Openbravo" title="Openbravo" border="0"></IMG></A></TD>
          <TD > <HR></HR>
          </TD>
          <TD  width="2%"> <A href="../secureApp/GoBack.html" onmouseover="window.status='Back';return true;" onmouseout="window.status='';return true;" target="_parent" class="TBButton"> 
            <img src="../../../../../web/images/Back.jpg"  alt="Back" title="Back" border="0" id="buttonBack"></IMG></A></TD>
  </TR>
</TABLE>
<FORM name="frmMain" method="POST" action="MatchingPO-Receipt-Invoice_F2.html" target="dos">
  <INPUT type="hidden" name="Command"></INPUT>
  <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
    <TR> 
      <TD width="9%" > <SPAN >Doc. Origen</SPAN>&nbsp;</TD>
      <TD width="13%" > <SELECT name="inpsourcedoc" onchange="rellenarComboHijo(document.frmMain.inpfinaldoc, arrFinalDocs, this.options[this.selectedIndex].value, false, true);return true;" id="reportDocument_M">
          <OPTION value="1">Invoice</OPTION>
          <OPTION value="2">Shipment</OPTION>
          <OPTION value="3">Purchase order</OPTION>
        </SELECT></TD>
      <TD width="9%" > <SPAN >Doc. Final</SPAN>&nbsp;</TD>
      <TD width="13%" > <SELECT name="inpfinaldoc" id="reportFinalDoc_M">
          <OPTION value="0" id="discard">Shipment</OPTION>
        </SELECT></TD>
      <TD width="9%" > <SPAN >Search for</SPAN>&nbsp;</TD>
      <TD width="13%" > <SELECT name="inpsearchmode" id="reportState_M">
          <OPTION value="0">Not balanced</OPTION>
          <OPTION value="1">Balanced</OPTION>
        </SELECT></TD>
      <TD  width="9%"> <SPAN >Business Partner</SPAN></TD>
      <TD width="21%" > <INPUT type="hidden" name="inpcBpartnerId" value="" id="paramBpartner"></INPUT> 
        <INPUT type="text" name="inpcBpartnerId_DES" size="20" maxlength="20" value="" id="paramBpartnerDes"></INPUT> 
        <A href="#" onclick="openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
        <img width="16" height="16"  alt="Business Partner" title="Business Partner" border="0" src="../../../../../web/images/BusinessPartner.jpg" id="buttonBPartner"></IMG></A></TD>
      <TD rowspan="3" width="4%"> <A href="#" onclick="submitCommandForm('FIND');return false;" onmouseover="window.status='Results';return true;" onmouseout="window.status='';return true;" > 
        <img width="16" height="16" src="../../../../../web/images/Find.jpg"  alt="Results" title="Results" border="0" id="buttonResults"></IMG></A></TD>
    </TR>
    <TR> 
      <TD width="9%" > <SPAN >From</SPAN></TD>
      <TD width="13%"> <INPUT type="text" name="inpDesde" value="" size="10" maxlength="10" onkeyup="auto_complete_date(this);return true;" id="paramDesde"></INPUT> 
        <A href="#" onclick="showCalendar('frmMain.inpDesde', document.frmMain.inpDesde.value, false);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Show calendar';return true;" > 
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
      <TD width="9%" > <SPAN >To</SPAN></TD>
      <TD width="13%"> <INPUT type="text" name="inpHasta" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this);return true;" id="paramHasta"></INPUT> 
        <A href="#" onclick="showCalendar('frmMain.inpHasta', document.frmMain.inpHasta.value, false);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Show calendar';return true;" > 
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
      <TD > <SPAN >Product</SPAN></TD>
      <TD colspan="2" > <INPUT type="hidden" name="inpmProductId" value="" id="paramProduct"></INPUT> 
        <INPUT type="text" size="26" maxlength="22" name="inpmProductId_DES" value="" id="paramProductDes"></INPUT> 
        <A href="#" onclick="openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'WindowID', 'MatchingPO');return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
        <img width="16" height="16"  alt="Product" title="Product" border="0" src="../../../../../web/images/Product.jpg" id="buttonProduct"></IMG></A></TD>
    </TR>
  </TABLE>
  <HR></HR>
</FORM>
</BODY>
</HTML>
